<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8" isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html lang="zh">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
  <title>管理系统</title>
  <link href="${pageContext.request.contextPath}/css/bootstrap.min.css" rel="stylesheet">
  <link href="${pageContext.request.contextPath}/js/bootstrap-select/bootstrap-select.min.css" rel="stylesheet">

  <link href="${pageContext.request.contextPath}/css/materialdesignicons.min.css" rel="stylesheet">
  <link href="${pageContext.request.contextPath}/css/style.min.css" rel="stylesheet">
  <script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery.min.js"></script>
  <script type="text/javascript" src="${pageContext.request.contextPath}/layer/layer.js"></script>
  <script>
    <c:if test="${info != null}">
    layer.ready(function(){
      layer.open({
        type: 1,
        area : ["150px", "75px"],
        closeBtn: 0, //不显示关闭按钮
        title : false,
        anim: 6,
        shadeClose: true, //开启遮罩关闭
        time: 2000,
        content:  '<div style="margin: auto; width: 100%; height: 100%" class="alert alert-success" role="alert"><h3 style="text-align: center">${info}</h3></div>'
      });
    });
    </c:if>
  </script>
  <style>
    table{    border-collapse:separate;    border-spacing:10px 50px;}
  </style>
</head>

<body>

<!--End 头部信息-->

<!--页面主要内容-->
  <div class="container">
    <div class="row">
      <br>
      <div class="text-center">
        <h2>${student.name}</h2>
      </div>
      <table class="table table-hover">
        <c:if test="${student != null}">
        <tbody class="text-center">
        <tr class="text-center">
          <th scope="row" class="text-center">学号</th>
          <td>${student.sid}</td>
        </tr>
        <tr class="text-center">
          <th scope="row" class="text-center">性别</th>
          <td>${student.gander}</td>
        </tr>
        <tr class="text-center">
          <th scope="row" class="text-center">身份证号</th>
          <td>${student.idcard}</td>
        </tr>
        <tr class="text-center">
          <th scope="row" class="text-center">所属学院</th>
          <td>${student.college}</td>
        </tr>
        <tr class="text-center">
          <th scope="row" class="text-center">班级</th>
          <td>${student.profession} -- ${student.clazz} 班</td>
        </tr>
        <tr class="text-center">
          <th scope="row" class="text-center">email</th>
          <td>${student.email}</td>
        </tr>
        </tbody>
        </c:if>
      </table>
    </div>
  </div>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/layer/layer.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/bootstrap.min.js"></script>
<%--<script type="text/javascript" src="${pageContext.request.contextPath}/js/main.min.js"></script>--%>

</body>
</html>